<template>
  <el-dialog :visible.sync="visible" v-dialogDrag :title="title" :append-to-body="true" :close-on-click-modal="false" class="tl-dialog" width="1000px" @open="open" @close="close">
    <div class="app-container">
    <div>
      <!--表格渲染-->
      <el-table class="tl-table" ref="mainTable" height="450px" resizable-key="tableHeight" :resizable-refs="tableResizeRefs" v-loading="loading" :data="datas" @selection-change="doSelectChange" @sort-change="doSortChange" @row-dblclick="doRowDbClick" @row-click="doRowClick" row-key="id" border fit :row-class-name="doChangeRowClassName">
        <el-table-column type="index" label="序号" width="55px" align="center"></el-table-column>
				<el-table-column prop="oldapplicant" label="离职/转岗人员" width="120px" sortable="custom" sort-by="oldapplicant" align="center" :show-overflow-tooltip="true"></el-table-column>
				<el-table-column prop="oldapplicantcode" label="离职/转岗人员工号" width="150px" sortable="custom" sort-by="oldapplicantcode" align="center" header-align="center" :show-overflow-tooltip="true"></el-table-column>
				<el-table-column prop="newapplicant" label="交接人" width="120px" sortable="custom" sort-by="newapplicant" align="center" :show-overflow-tooltip="true"></el-table-column>
				<el-table-column prop="newapplicantcode" label="交接人工号" width="150px" sortable="custom" sort-by="newapplicantcode" align="center" header-align="center" :show-overflow-tooltip="true"></el-table-column>
				<el-table-column prop="submitdate" label="提交日期" width="170px" sortable="custom" sort-by="submitdate" align="center" header-align="center" :formatter="dateTimeFormat" :show-overflow-tooltip="true"></el-table-column>
				<el-table-column prop="dispstate" label="状态" width="100px" sortable="custom" sort-by="state" align="center" header-align="center" :show-overflow-tooltip="true"></el-table-column>
				<el-table-column prop="description" label="交接原因" min-width="250px" align="left" header-align="center" :show-overflow-tooltip="true"></el-table-column>
      </el-table>
      <!-- 列表分页 -->
      <el-row class="pagebar" ref="pager">
        <el-pagination @size-change="doChangeSize" @current-change="doChangeIndex" :current-page="pageInfo.currentPage" :page-sizes="pageInfo.pageSizes" :total="pageInfo.totalCount" layout="total, sizes, prev, pager, next, jumper" background class="tl-table-pagination"> </el-pagination>
      </el-row>
    </div>
  </div>
</el-dialog>
</template>

<script>
/** mixins */
import { mixin_list } from '@tapui/mixins/mixin_list'
// /** 子组件 */
/** 工具类 */
import { getAction, putAction, postAction, deleteAction } from '@tapui/utils/http'
export default {
  name: 'indexhistory',
  mixins: [mixin_list],
  components: { },
  data() {
    return {
      title: '历史交接',
      description: '项目合同申请人变更-列表查询',
      urlPrefix: '/pm/contractApplicantChange/',
      url: {
        queryCodeList: '/pm/contractApplicantChange/dataCodeList'
      },
      // 排序参数
      sorterInfo: {
        sidx: 'sortcode',
        sord: 'asc'
      },
      isQueryOnCreated: false,
      visible: false
    }
  },
  props: {
    projectid: {
      type: String,
      default: ''
    }
  },
  methods: {
    open() {
        this.$nextTick(() => {
            this.$set(this.queryParam, 'qry_projectid', this.projectid)
            this.doQuery()
        })
    },
    close() {}
  }
}
</script>

<style scoped></style>

